PackageManagerCompat

Helper for accessing features in PackageManager.

Types

Link copied to clipboard
The status of Unused App Restrictions for this app.

Properties

Link copied to clipboard
val ACTION_PERMISSION_REVOCATION_SETTINGS: String = "android.intent.action.AUTO_REVOKE_PERMISSIONS"
Activity action: creates an intent to redirect the user to UI to turn on/off their permission revocation settings.
Link copied to clipboard
val LOG_TAG: String = "PackageManagerCompat"

Functions

Link copied to clipboard
Returns whether any Unused App Restrictions are available on the device.
Link copied to clipboard
Returns the package name of the one and only Verifier on the device that can support permission revocation.
Link copied to clipboard
open fun getUnusedAppRestrictionsStatus(@NonNull context: Context): ListenableFuture<Integer>
Returns the status of Unused App Restrictions for the current application.